package com.blb.community_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community_admin.entity.SysPost;

/**
 * @author hkp
 */
public interface SysPostMapper extends BaseMapper<SysPost> {

    /**
     * 通过userId获取post信息
     * @param userId
     * @return
     */
    SysPost selectPostByuserId(long userId);
    /**
     * 根据岗位编号，岗位名称，状态，进行带模糊查询的分页
     *
     * @param page
     * @param postCode
     * @param postName
     * @param status
     * @return
     */
    IPage<SysPost> selectPostPage(IPage<SysPost> page, String postCode, String postName, String status);
}
